package com.fan.service.impl;

import com.fan.entity.EventCert;
import com.fan.mapper.EventCertMapper;
import com.fan.service.EventCertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class EventCertServiceImpl implements EventCertService {

    @Autowired
    EventCertMapper eventCertMapper;

    @Override
    public int batchIncertInfo(List<EventCert> list) {
        return eventCertMapper.batchIncertInfo(list);
    }

    @Override
    public List<EventCert> selectAll() {
        return eventCertMapper.selectAll();
    }

    @Override
    public EventCert findByHashCode(int hashcode, Long contractId, Date createTime, Date endTime) {
        return eventCertMapper.findByHashCode(hashcode, contractId, createTime, endTime);
    }

    @Override
    public int delAll() {
        return eventCertMapper.delAll();
    }

    @Override
    public EventCert findByCreateTime(Date createTime) {
        return eventCertMapper.findByCreateTime(createTime);
    }

    @Override
    public List<EventCert> selectRange(int hashcode, Long bizId, Date st, Date et) {
        return eventCertMapper.selectRange(hashcode, bizId, st, et);
    }
}
